<template>
	<view class="wrap bgw"> 
		<view class="nav">
			<view @tap="Go(0)">
				<image src="../../static/image/icon_dongtai@2.png"></image>
				<br/>
				发布动态
			</view>
			<view @tap="Go(1)">
				<image src="../../static/image/icon_shangpin@2x.png"></image>
				<br/>
				发布商品
			</view>
			<view @tap="Go(2)">
				<image src="../../static/image/icon_jishi@2x.png"></image>
				<br/>
				创建集市
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			Go(state){
				if (this.$store.state.token == '') {
					uni.showToast({
						title: '未登录',
						icon: 'none'
					})
					return
				}
				let url = ''
				switch (state){
					case 0:
					 url = '../CreateDynamic/CreateDynamic'
					break;
					case 1:
					 url = '../CreateGoods/CreateGoods'
					 break;
					case 2:
					 url = '../CreateMarket/CreateMarket'
					 break; 
					
				}
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style  lang="less" scoped>
.nav{
	position: fixed;
	bottom: 200rpx;
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 50rpx;
	>view{
		width:180rpx;
		height:180rpx;
		background:rgba(232,248,242,1); 
		border-radius:20rpx;
		text-align: center;
		padding-top: 36rpx;	
		color: #1A1A1A;
		image{
			width: 62rpx;
			height: 62rpx; 
		}
	}
}
</style>
